<template>
  <div class="spec-preview">
    <vue-photo-zoom-pro 
    :out-zoomer="true"
    :high-url="imgUrl"
    :width="200"
		:height="200"
    >
    <img :src="imgUrl" />
    </vue-photo-zoom-pro>
    
    
  </div>
</template>

<script>
  import VuePhotoZoomPro from 'vue-photo-zoom-pro'
  import 'vue-photo-zoom-pro/dist/style/vue-photo-zoom-pro.css'
  export default {
    name: "Zoom",
    props:['imgUrl'],
    components: {VuePhotoZoomPro}
  }
</script>

<style lang="less">
  .spec-preview {
    position: relative;
    width: 400px;
    height: 400px;
    border: 1px solid #ccc;

    img {
      width: 100%;
      height: 100%;
    }
  }
</style>